#!/usr/bin/env bash

echo "Start build..."

rm dist/* -rf
mkdir dist/bin
cp src/* dist/bin -rf
rm dist.tgz
tar zcvf dist.tgz dist

echo "Do copy dist to server..."
scp dist.tgz root@42.96.192.37:/home/server/mp_wechat

